from appium.webdriver.common.appiumby import AppiumBy

from appium_xueqiu.page_object.base_page.base_page import BasePage
from appium_xueqiu.page_object.search_page import SearchPage


class MainPage(BasePage):
    __CLICK_SEARCH = (AppiumBy.ID, "com.xueqiu.android:id/home_search")

    def click_search(self):
        self.do_click(self.__CLICK_SEARCH)

        return SearchPage(self.driver)
